// https://www.npmjs.com/package/hotkeys-js/v/2.0.10
import hotkeys from 'hotkeys-js';


export class CustomHotKeys {

    constructor() {
        hotkeys('f5', function (event: any, handler: any) {
            // Prevent the default refresh event under WINDOWS system
            event.preventDefault()
            alert('按下了 F5!')
        });

        hotkeys('ctrl+s', function (event: any, handler: any) {
            // Prevent the default refresh event under WINDOWS system
            event.preventDefault()
            alert('按下了ctrl+s!')
        });
    }

}

